import Index from "../page/Index.vue";
import Team from "../page/Team.vue";
import User from "../page/User.vue";
import SearchPage from "../page/SearchPage.vue";
import UserEditPage from "../page/UserEditPage.vue";
import SearchResultPag from "../page/SearchResultPag.vue";
import UserLoginPage from "../page/UserLoginPage.vue";
import TeamAddPage from "../page/TeamAddPage.vue";
import TeamUpdatePage from "../page/TeamUpdatePage.vue";
import UserUpdatePage from "../page/UserUpdatePage.vue";
import TeamJoinPage from "../page/TeamJoinPage.vue";
import TeamCreatePage from "../page/TeamCreatePage.vue";
import FriendPage from "../page/FriendPage.vue";
import ApplyRecordsPage from "../page/ApplyRecordsPage.vue";
import HallChatPage from "../page/HallChatPage.vue";
import ChatPage from "../components/ChatPage.vue";
import UserRegister from "../page/UserRegister.vue";
import UserInfo from "../page/UserInfo.vue";

const routes = [
    {path: '/', component: Index},
    {path: '/search', title: '找伙伴', component: SearchPage},
    {path: '/user', title: '个人信息', component: User},
    {path: '/user/edit', title: '编辑信息', component: UserEditPage},
    {path: '/user/list', title: '用户列表', component: SearchResultPag},
    {path: '/user/login', title: '登录', component: UserLoginPage},
    {path: '/user/update', title: '更新信息', component: UserUpdatePage},
    {path: '/team', title: '找队伍', component: Team},
    {path: '/team/add', title: '添加队伍', component: TeamAddPage},
    {path: '/team/update', title: '更新队伍', component: TeamUpdatePage},
    {path: '/team/join', title: '加入队伍', component: TeamJoinPage},
    {path: '/team/create', title: '创建队伍', component: TeamCreatePage},
    {path: '/friends', title: '我的好友', component: FriendPage},
    {path: '/apply', title: '新的朋友', component: ApplyRecordsPage},
    {path: '/hall_chat', title: '聊天室', component: HallChatPage},
    {path: '/chat', title: '聊天', component: ChatPage},
    {path: '/user/register', title: '用户注册', component: UserRegister},
    {path: '/user/info', title: '用户信息', component: UserInfo},
]
export default routes;
